package edu.my.dao;

import edu.my.model.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface BookDao {
    void insertBook(Book book);
    void findAll(List<Book> BookList);

    void deleteBook(Book book);
    void deleteAll(List<Book> bookList);

    void modifyBook(Book book);

    Book queryOneBook(Book book);
    Book queryOneBookById(String id);
    /*@Select("select * from book1")*/
    List<Book> findAll();

    void deleteBookByIsdn(String isdn);
}
